﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FCDB.Entity.EntityEx
{
    public class WfActivityInstanceTasksExComparer : IEqualityComparer<WfActivityInstanceTasksEx>
    {

        public bool Equals(WfActivityInstanceTasksEx x, WfActivityInstanceTasksEx y)
        {
            return x.ProcessInstanceID == y.ProcessInstanceID;
        }

        public int GetHashCode(WfActivityInstanceTasksEx obj)
        {
            return obj.ToString().GetHashCode();
        }
    }
    
   public class WfActivityInstanceTasksEx
    {

        public long TaskID { get; set; }
        public string AppName { get; set; }
        public long AppInstanceID { get; set; }
        public System.Guid ProcessGUID { get; set; }
        public long ProcessInstanceID { get; set; }
        public System.Guid ActivityGUID { get; set; }
        public long ActivityInstanceID { get; set; }
        public string ActivityName { get; set; }
        public short ActivityType { get; set; }
        public short TaskType { get; set; }
        public Nullable<Guid> AssignedToUserID { get; set; }
        public string AssignedToUserName { get; set; }
        public System.DateTime CreatedDateTime { get; set; }
        public Nullable<System.DateTime> EndedDateTime { get; set; }
        public Nullable<Guid> EndedByUserID { get; set; }
        public string EndedByUserName { get; set; }
        public short TaskState { get; set; }
        public short ActivityState { get; set; }
        public byte IsActivityCompleted { get; set; }
        public byte RecordStatusInvalid { get; set; }
        public short ProcessState { get; set; }
        public Nullable<Guid> CreatedByUserID { get; set; }
        public string CreatedByUserName { get; set; }

        public Guid? LastUpdatedByUserID { get; set; }
        public string LastUpdatedByUserName { get; set; }

       // 陈湘林 添加
        public short State { get; set; }
        #region 流程扩展
       /// <summary>
       /// 1:流程任务,2：传阅 , 3:征求意见,4:回复传阅,5：回复征求意见
       /// </summary>
        public int ReadyTaskType { get; set; }
       /// <summary>
       /// 判断是否回复
       /// </summary>
        public int IsReplay { get; set; }
        public Nullable<Guid> SendUserID { get; set; }

        public string AppInstanceCreateUserName { get; set; }
        public DateTime AppInstanceCreateTime{ get; set; }

        public String isRed { get; set; }
        #endregion 
    }
}
